<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pro_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pro_id" data-rule="required" data-source="product/index" class="form-control selectpage" name="pro_id" type="text" value="{$row.pro_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Card_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-card_ids" data-rule="required" required multiple class="form-control selectpicker" name="card_ids[]">
                {foreach name="card_list" item="vo" key="key"}
                <option value="{$vo['id']}" {in name="vo['id']" value="$row.card_ids"} selected {/in}>{$vo['name']}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Route_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-route_ids" data-rule="" required multiple class="form-control selectpicker" name="route_ids[]">
                {foreach name="route_list" item="vo"}
                <option class="selected_tag" value="{$vo['code']}"   {in name="vo['code']" value="$row.route_ids"} selected {/in} data-test="66">{$vo['name']}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Trans_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-trans_ids" data-rule="" required multiple class="form-control selectpicker" name="trans_ids[]">
                {foreach name="tran_list" item="vo"}
                <option value="{$vo['code']}" data-test="66"  {in name="vo['code']" value="$row.trans_ids"} selected {/in} >{$vo['name']}-[{$vo.code}]</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('开关')}:</label>
        <div class="col-xs-12 col-sm-8">

            <input id="c-isStatus" name="isStatus" type="hidden" value="{$row.isStatus}">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-isStatus" data-yes="1" data-no="2">
                <i class="fa fa-toggle-on text-success  {eq name='$row.isStatus' value='2'} fa-flip-horizontal text-gray{/eq}  fa-2x"></i>
            </a>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Modifytime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-modifyTime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="modifyTime" type="text" value="{:$row.modifyTime?datetime($row.modifyTime):date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>